home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: June 98
- // Author: rs
- //
- // Description:
- // These procs helps to create the controls for arc creation
- // property sheet. See also arcValues.mel for procs that set
- // the state of the property sheet.
- //
- // Input Arguments:
- // None.
- //
- // Return Value:
- // None.
- //
-
- proc arcCallback( string $parent, string $ctxCmd )
- //
- // Description :
- //
- {
- setParent $parent ;
-
- // degree of curve.
- //
- radioButtonGrp -e -on1 ($ctxCmd + " -e -d 1 `currentCtx`")
- -on2 ($ctxCmd + " -e -d 3 `currentCtx`") arcDegreeRadio13 ;
-
- // call back for # of spans(sections).
- //
- intSliderGrp -e -cc ($ctxCmd + " -e -s #1 `currentCtx`") arcSectionsSlider;
- }
-
- global proc arcProperties( string $type, string $ctxCmd)
- //
- // Description : This procedure builds the property sheet
- // and assigns callbacks to its controls.
- {
- setUITemplate -pushTemplate OptionsTemplate;
- string $parent = `toolPropertyWindow -q -location`;
- setParent $parent;
-
- columnLayout -adj true $type;
- // Sets proper width for frameLayout in Arc properties tool window, applicable for all platforms
- frameLayout -bv true -cll true -collapse false -width 400 -l "Arc Settings" geometryOptions_F;
- columnLayout geometryOptions_L;
- radioButtonGrp -nrb 2 -l "Circular Arc Degree" -l1 "1 Linear" -l2 "3" arcDegreeRadio13;
- intSliderGrp -label "Sections" -field true -min 8 -max 100 -fmn 4 -fmx 200 -v 8 arcSectionsSlider;
- setParent .. ;
- setParent .. ;
- setParent .. ;
-
- arcCallback( $parent, $ctxCmd ) ;
- setUITemplate -popTemplate;
- }
-
-
-